// 基于axios封装网络请求
import thisAxios from 'axios'
const axios = thisAxios.create({
    baseURL: ' http://geek.itheima.net',
    timeout: 20000
})

export default ({ url, method = 'GET', params = {}, data = {}, headers = {} }) => {
    return axios({
        url,
        method,
        params,
        data,
        headers
    })
}
